home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / c / BlackborderSou.lha / Blackborder / blackborder.c < prev    next >
C/C++ Source or Header  |  1995-12-07  |  1KB  |  50 lines

  1. /*
  2.  *    File:                    
  3.  *    Description:    
  4.  *
  5.  *    (C) 1995, Ketil Hunn
  6.  *
  7.  */
  8.  
  9. #ifndef    BLACKBORDER_C
  10. #define    BLACKBORDER_C
  11.  
  12. /*** INCLUDES ************************************************************************/
  13. #include <exec/types.h>
  14. #include <graphics/gfxbase.h>
  15. #include "myinclude:BitMacros.h"
  16.  
  17. #include <clib/intuition_protos.h>
  18. #include <clib/exec_protos.h>
  19.  
  20. /*** DEFINES *************************************************************************/
  21. #define    LIBVER    38
  22.  
  23. /*** GLOBALS *************************************************************************/
  24. char const *version="\0$VER: Blackborder 1.1 (08.12.95)\©1995 Ketil Hunn";
  25.  
  26. /*** FUNCTIONS ***********************************************************************/
  27. void __main(void)
  28. {
  29.     register struct IntuitionBase    *IntuitionBase;
  30.  
  31.     if(IntuitionBase=(struct IntuitionBase *)OpenLibrary("intuition.library", LIBVER))
  32.     {
  33.         register struct GfxBase *GfxBase;
  34.  
  35.         if(GfxBase=(struct GfxBase *)OpenLibrary("graphics.library", LIBVER))
  36.         {
  37.             if(ISBITSET(GfxBase->BP3Bits, BPLCON3_BRDNBLNK))
  38.                 CLEARBIT(GfxBase->BP3Bits, BPLCON3_BRDNBLNK);
  39.             else
  40.                 SETBIT(GfxBase->BP3Bits, BPLCON3_BRDNBLNK);
  41.             RemakeDisplay();
  42.  
  43.             CloseLibrary((struct Library *)GfxBase);
  44.         }
  45.         CloseLibrary((struct Library *)IntuitionBase);
  46.     }
  47. }
  48.  
  49. #endif
  50.